﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="rptAssesmentList.aspx.cs" Inherits="reports_rptAssesmentList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
    <script type="text/javascript" src="<%= ResolveUrl("~/scripts/i18n/grid.locale-id.js") %>"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~/scripts/jquery.jqGrid.min.js") %>"></script>
    <script src="<%= ResolveUrl("~/scripts/jquery.msgBox.v1.js") %>" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {

            $("#<%=btnProcess.ClientID %>").click(function () {
                //alert("D");
                //var objKeyBehaviour = new Object();
                //jsonData = JSON.stringify(objKeyBehaviour);
                var handlerUrl = '<%= ResolveUrl("~/ajaxhandler/Report/ReportAssesmentPositionHandler.ashx") %>';
                alert(handlerUrl);
                //CallAjax(handlerUrl, "?method=insert");
                //CallAjax('<%= ResolveUrl("~/AjaxHandler/Transaction/AssesmentPositionIDPHandler.ashx") %>', "?method=delete", jsonData);


                var objrecSanction = new Object();
                objrecSanction.SanctionID = encodeURIComponent("1");
                jsonData = JSON.stringify(objrecSanction);
                //var handlerUrl = '<%= ResolveUrl("~/ajaxhandler/loaddata/Administration/catalog/downloadhandler.ashx") %>';
                alert(jsonData);
                $.ajax({
                    type: 'POST',
                    url: handlerUrl,
                    contentType: 'application/json',
                    dataType: 'json',
                    data: jsonData,
                    success: function (data) {
                        alert(data);
                    },
                    error: function (response) {
                        //var r = JSON.parse(response.responseText);
                        alert("Error  Download"); //Message: " + r.Message);
                    }
                });








            });

        });
    </script>
    <asp:Button ID="btnProcess" runat="server" Text="Proses" />
</asp:Content>
